Turn from: http://www.cnblogs.com/qingchunjun/p/4208159.html
By.xpath ()
This method is a very powerful way to find elements, which can be used to locate almost any element on the page. Before we can formally start using XPath for positioning,
In the. NET Framework 2.0, you can use the classes under the System.Xml.XPath namespace to make path-based queries to an XML document, and you need to construct a SQL-like query string that follows the XPath syntax during the query process. It is
SLT 2.0 with XPath 2.0. They are described separately because XPath 2.0 can also be used in environments other than XSLT, such as XQuery 1.0. But for XSLT users, they are interrelated. You cannot use XPath 2.0 in XSLT 1.0, or use XPath 1.0 in XSLT 2.
1. Summary of the usage of re regular(1), ^ indicates which character to start with eg: ' ^g ' denotes a string starting with G. means that any character ' ^g.d ' represents a second character starting with G, and a third string of B indicates that
Copy codeThe Code is as follows: function $ (){
Return Selector. findChildElements (document, $ A (arguments ));
}
This class can be divided into three parts: The first part is to determine the DOM operation method used based on different browsers.
Copy codeThe Code is as follows:Function $ (){Return Selector. findChildElements (document, $ A (arguments ));}This class can be divided into three parts: The first part is to determine the DOM operation method used based on different browsers. Here,
Copy Code code as follows:
function $$ () {
return selector.findchildelements (document, $A (arguments));
}
This class can be divided into three parts: the first part is based on different browsers to determine what DOM action to
XSL
XSL is for XML, just like CSS for HTML. It refers to the Extensible Stylesheet Language ). This is a language used to present XML data in a readable format. XSL actually contains two parts:
* XSLT-language used to convert XML documents
*
Selenium How webdriver elements are positionedThe main thing is by class1, By.name ()##The HTML code is as follows:Google SearchWhen you use the Name property to refer to the button and click on it, the code is as follows:public class
When you use selenium webdriver for element positioning, you typically use the Findelement or Findelements method to position the element with the element handle returned by the by class.Among them, by the common positioning method of eight kinds,
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.